package cn.bblocks.cacheTest.suport.dto;

import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

/**
 * @program:
 * @author: captain.ma
 * @date: 2018-11-18
 * @since: 1.0.0.0
 */
public class IdReq {
    @Getter
    @Setter
    private Long id;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        IdReq idReq = (IdReq) o;
        return Objects.equals(id, idReq.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
